<template>
    <div>
        <el-radio-group :model-value="props.judgmentAnswer" @update:model-value="updateJudgmentAnswer"
            style="margin-left: 120px;margin-top: 20px;margin-bottom: 20px;">
            <el-radio :label="true">正确</el-radio>
            <el-radio :label="false">错误</el-radio>
        </el-radio-group>
    </div>
</template>

<script setup>
import { defineProps, defineEmits } from 'vue';

const props = defineProps({
    judgmentAnswer: Boolean,
});

const emit = defineEmits(['update:judgmentAnswer']);

const updateJudgmentAnswer = (value) => {
    emit('update:judgmentAnswer', value);
};
</script>